home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / restricted-manager.postinst < prev    next >
Encoding:
Text File  |  2007-04-12  |  975 b   |  30 lines

  1. #!/bin/sh -e
  2.  
  3. if [ "$1" = configure ] || [ "$1" = reconfigure ]; then
  4.     addgroup --system --quiet admin
  5.     chown root:admin /var/cache/restricted-manager
  6.     chmod 3775 /var/cache/restricted-manager
  7. fi
  8.  
  9. if [ "$1" = configure ]; then
  10.     # Remove cache files.
  11.     rm -f /var/cache/restricted-manager/*.restricted
  12. fi
  13.  
  14. # Automatically added by dh_pycentral
  15. if which pycentral >/dev/null 2>&1; then
  16.     pycentral pkginstall restricted-manager
  17. fi
  18. # End automatically added section
  19. # Automatically added by dh_iconcache
  20. touch -m /usr/share/icons/hicolor
  21. if [ "$1" = configure ] && \
  22.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  23.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ] && \
  24.    [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  25.    [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  26.     gtk-update-icon-cache -q /usr/share/icons/hicolor
  27. fi
  28. # End automatically added section
  29.  
  30.